home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / PIL / ImageFileIO.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-13  |  713b  |  20 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. from StringIO import StringIO
  5.  
  6. class ImageFileIO(StringIO):
  7.     
  8.     def __init__(self, fp):
  9.         data = fp.read()
  10.         StringIO.__init__(self, data)
  11.  
  12.  
  13. if __name__ == '__main__':
  14.     import Image
  15.     fp = open('/images/clenna.im', 'rb')
  16.     im = Image.open(ImageFileIO(fp))
  17.     im.load()
  18.     print im.mode, im.size
  19.  
  20.